<!--
 * @Author: HeAo
 * @Date: 2021-10-19 17:03:33
 * @LastEditTime: 2021-10-19 17:18:06
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \web2103-2105\web2105\3-2-Vue\day09\app02-vue\src\views\Category.vue
 * 别乱动！
-->
<template>
  <div class="category">
    栏目管理
    <ul>
      <li v-for="(item, index) in categories" :key="index">
        栏目编号： {{ item.id }} 栏目名称： {{ item.name }}
      </li>
    </ul>
  </div>
</template>
<script>
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState("category", ["categories"]),
  },
};
</script>
<style scoped>
div {
  background-color: aqua;
}
</style>
